package com.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.bean.wd_purpose;
import com.dao.wd_purposeMapper;
import com.service.PurposeService;
@Service
public class PurposeServiceImpl implements PurposeService{
	@Autowired
    @Qualifier("wd_purposeMapper")
	private wd_purposeMapper purposeDao;
	
	public int deleteByPrimaryKey(String purposeId) {
		// TODO Auto-generated method stub
		return purposeDao.deleteByPrimaryKey(purposeId);
	}

	public int insert(wd_purpose record) {
		// TODO Auto-generated method stub
		return purposeDao.insert(record);
	}

	public int insertSelective(wd_purpose record) {
		// TODO Auto-generated method stub
		return purposeDao.insertSelective(record);
	}

	public wd_purpose selectByPrimaryKey(String purposeId) {
		// TODO Auto-generated method stub
		return purposeDao.selectByPrimaryKey(purposeId);
	}

	public int updateByPrimaryKeySelective(wd_purpose record) {
		// TODO Auto-generated method stub
		return purposeDao.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(wd_purpose record) {
		// TODO Auto-generated method stub
		return purposeDao.updateByPrimaryKey(record);
	}

	public List<wd_purpose> selectAll() {
		// TODO Auto-generated method stub
		return purposeDao.selectAll();
	}

}
